package com.yyf.springboot2.entity;

import java.beans.Transient;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.boot.autoconfigure.domain.EntityScan;

import java.io.Serializable;


/**
 * <p>
 * 
 * </p>
 *
 * @author yyf
 * @since 2019-05-29
 */
@TableName("t_goods")
@EntityScan
@Data
public class TGoods implements Serializable {

    private static final long serialVersionUID = 1L;

	private Integer id;
	@TableField("categoryId")
	private Integer categoryId;
	private String description;
	private Integer display;
	@TableField("endTime")
	private String endTime;
	@TableField("goodsName")
	private String goodsName;
	@TableField("goodsType")
	private Integer goodsType;
	private String image;
	private Integer inventory;
	@TableField("itemName")
	private String itemName;
	private Double price;
	@TableField("hyPrice")
	private Double hyPrice;
	@TableField("dlPrice")
	private Double dlPrice;
	private Double pv;
	@TableField("startTime")
	private String startTime;

	private Integer stat;////状态 0.上架1.下架
	private Date time;
	private Integer type;
	@TableField("categoryName")
	private String categoryName;
	@TableField("inventory_display")
	private Integer inventory_display;
	private Double price1;
	private Double price2;
	private Double price3;
	private Double price4;
	private Double price5;
	private Double price6;


	@TableField(exist = false)
	private  TGoodscategory goodscategory;

	@Transient
	public TGoodscategory getGoodscategory() {
		return goodscategory;
	}

	public void setGoodscategory(TGoodscategory goodscategory) {
		this.goodscategory = goodscategory;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getDisplay() {
		return display;
	}

	public void setDisplay(Integer display) {
		this.display = display;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public Integer getGoodsType() {
		return goodsType;
	}

	public void setGoodsType(Integer goodsType) {
		this.goodsType = goodsType;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public Integer getInventory() {
		return inventory;
	}

	public void setInventory(Integer inventory) {
		this.inventory = inventory;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Double getHyPrice() {
		return hyPrice;
	}

	public void setHyPrice(Double hyPrice) {
		this.hyPrice = hyPrice;
	}

	public Double getDlPrice() {
		return dlPrice;
	}

	public void setDlPrice(Double dlPrice) {
		this.dlPrice = dlPrice;
	}

	public Double getPv() {
		return pv;
	}

	public void setPv(Double pv) {
		this.pv = pv;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public Integer getStat() {
		return stat;
	}

	public void setStat(Integer stat) {
		this.stat = stat;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public Integer getInventory_display() {
		return inventory_display;
	}

	public void setInventory_display(Integer inventory_display) {
		this.inventory_display = inventory_display;
	}

	public Double getPrice1() {
		return price1;
	}

	public void setPrice1(Double price1) {
		this.price1 = price1;
	}

	public Double getPrice2() {
		return price2;
	}

	public void setPrice2(Double price2) {
		this.price2 = price2;
	}

	public Double getPrice3() {
		return price3;
	}

	public void setPrice3(Double price3) {
		this.price3 = price3;
	}

	public Double getPrice4() {
		return price4;
	}

	public void setPrice4(Double price4) {
		this.price4 = price4;
	}

	public Double getPrice5() {
		return price5;
	}

	public void setPrice5(Double price5) {
		this.price5 = price5;
	}

	public Double getPrice6() {
		return price6;
	}

	public void setPrice6(Double price6) {
		this.price6 = price6;
	}

	@Override
	public String toString() {
		return "TGoods{" +
				"id=" + id +
				", categoryId=" + categoryId +
				", description='" + description + '\'' +
				", display=" + display +
				", endTime='" + endTime + '\'' +
				", goodsName='" + goodsName + '\'' +
				", goodsType=" + goodsType +
				", image='" + image + '\'' +
				", inventory=" + inventory +
				", itemName='" + itemName + '\'' +
				", price=" + price +
				", hyPrice=" + hyPrice +
				", dlPrice=" + dlPrice +
				", pv=" + pv +
				", startTime='" + startTime + '\'' +
				", stat=" + stat +
				", time=" + time +
				", type=" + type +
				", categoryName='" + categoryName + '\'' +
				", inventory_display=" + inventory_display +
				", price1=" + price1 +
				", price2=" + price2 +
				", price3=" + price3 +
				", price4=" + price4 +
				", price5=" + price5 +
				", price6=" + price6 +
				", goodscategory=" + goodscategory +
				'}';
	}
}
